<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'home.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css"
			media="screen" />
		<link rel="stylesheet" href="css/style.css" type="text/css" />
	</head>

	<body>
		<div id="content">

			<form class="form-horizontal" action="user_Login" method="post">
				<fieldset>
					<legend>
						快E支付
					</legend>
					<a id="a2" href="logoutaction">注销</a>
					<div class="control-group">
						<div class="controls">
							<p id="p1">
								${sessionScope.user.username}
							</p>
							<h3>
								您好!
							</h3>
							<h3>
								欢迎使用快E支付!
							</h3>
						</div>
					</div>
					<legend>
						用户状态
					</legend>
					<a id="a3" href="admin/accountedit.jsp">修改密码</a>
					<div class="control-group">
						<label class="control-label" for="input01">
							支付宝
						</label>
						<div class="controls">
							<s:if test="%{#session.user.account!=null}">已开通<br />
							余额：${sessionScope.user.account.money}
							<br />
								<br />
								<div>
									<s:if test="%{#session.user.userbank!=null}">
										<a href="admin/recharge.jsp" class="btn btn-primary">充值 </a>
							    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							    <a href="admin/paypal.jsp" class="btn btn-inverse">提现 </a>
									</s:if>
									<s:else></s:else>
								</div>
							</s:if>
							<s:else>未开通<a href="admin/account.jsp"
									class="btn btn-primary">开通 </a>
							</s:else>

						</div>
					</div>
					<legend></legend>
					<div class="control-group">
						<label class="control-label" for="input01">
							银行卡绑定
						</label>
						<div class="controls">
							<s:if test="%{#session.user.userbank!=null}">已绑定</s:if>
							<s:else>未绑定<a href="admin/bank.jsp"
									class="btn btn-primary">绑定</a>
							</s:else>

						</div>
					</div>
				</fieldset>
			</form>
		</div>
	</body>
</html>
